import React, { Component } from 'react'
import {NavBar, Icon} from 'antd-mobile'

export default class HeaderTabBar extends Component {
    render() {
        return (
            <div>
                <NavBar
                    mode="dark"
                    icon={<Icon onClick={()=> this.props.back()} type="left" />}
                    rightContent={[
                        <div key="s1" onClick={()=> this.props.save()}>保存</div>
                    ]}
                >{this.props.name}</NavBar>
            </div>
        )
    }
}